package com.sxt.web.task;


import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

//import org.slf4j.LoggerFactory;
//import org.slf4j.Logger;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class LogTask {
	//Logger logger = LoggerFactory.getLogger("JOB_LOG");
	@PostConstruct
	public void task1() {
		
		//logger.warn("启动 Netty 成功");
		
		log.warn("启动 Netty 成功");
	}
	
	@PreDestroy
	public void destroy() {
		//logger.warn("关闭 Netty 成功");
		log.warn("关闭 Netty 成功");
	}
}
